﻿<controls:ChildWindow x:Class="MySettlers.NewThingUC"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="400" Height="300" 
           Title="NewThingUC">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <ScrollViewer Grid.Column="0">
            <ScrollViewer.Template>
                <ControlTemplate TargetType="ScrollViewer">
                    <ScrollContentPresenter x:Name="ScrollContentPresenter" Content="{TemplateBinding Content}"/>
                </ControlTemplate>
            </ScrollViewer.Template>
            <ScrollViewer.Content>
                <StackPanel Orientation="Vertical"  x:Name="thingContainer">
                </StackPanel>
            </ScrollViewer.Content>
        </ScrollViewer>
        <ScrollViewer  Grid.Column="1"></ScrollViewer>
        <Button x:Name="CancelButton" Grid.Column="1" Content="Cancel" Click="Button_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Grid.Column="1" Content="OK" Click="Button_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>